﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Helpers;

namespace Helpers.Conditions
{
    public class OrCondition<T> : BaseMultipleCondition<T>
    {
        public OrCondition(params BaseCondition<T>[] conditions)
            : base(conditions)
        { }

        public OrCondition(List<BaseCondition<T>> conditions)
            : base(conditions)
        { }



        public override bool Operation(bool condition1, bool condition2)
        {
            return condition1 || condition2;
        }
    }
}
